package com.wenli.graduate2022.wenliGreenShop.service.servDao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wenli.graduate2022.wenliGreenShop.entity.Property;

import java.util.List;

/**
 * @author HuangHai
 * @date 2021/10/8 17:55
 */
public interface PropertyService {
    List<Property> findAll();
    List<Property> findByCategoryId(Integer id);//根据种类查找属性
    IPage<Property> findByPage(Page page);
    List<Property> findByName(String name);
    Property findById(Integer id);
    int insert(Property property);
    int update(Property property);
    int delete(Integer id);
    List<Property> selectByCategoryName(String name);


}
